package com.chainshop.common.core.domain.pojo;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.chainshop.common.annotation.Excel;
import com.chainshop.common.core.domain.BaseEntity;

/**
 * 存储销售记录的对象 sales
 * 
 * @author hmy
 * @date 2024-08-13
 */
public class Sales extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Integer orderId;

    /** 店铺ID */
    @Excel(name = "店铺ID")
    private Integer storeId;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 删除标记 */
    private Integer deleted;

    /** 存储收入记录的信息 */
    private List<RevenueRecords> revenueRecordsList;

    public void setOrderId(Integer orderId) 
    {
        this.orderId = orderId;
    }

    public Integer getOrderId() 
    {
        return orderId;
    }
    public void setStoreId(Integer storeId) 
    {
        this.storeId = storeId;
    }

    public Integer getStoreId() 
    {
        return storeId;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    public List<RevenueRecords> getRevenueRecordsList()
    {
        return revenueRecordsList;
    }

    public void setRevenueRecordsList(List<RevenueRecords> revenueRecordsList)
    {
        this.revenueRecordsList = revenueRecordsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("storeId", getStoreId())
            .append("amount", getAmount())
            .append("orderTime", getOrderTime())
            .append("deleted", getDeleted())
            .append("revenueRecordsList", getRevenueRecordsList())
            .toString();
    }
}
